x86: don't use BAD_APICID for non-APICID fields
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 24 Mar 2015 08:27:00 +0000 (09:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Mar 2015 08:27:00 +0000 (09:27 +0100)
commit6f20b0edf42efb3aabd954398d995d801a653677
tree158d0f21cae0fe8ba4510246e7a6ba2cdd2fd9e4
parent1e54275af681caff0894a50366f27574ab5edca7
x86: don't use BAD_APICID for non-APICID fields

BAD_APICID is used by cpuinfo_x86's phys_proc_id, cpu_core_id
and compute_unit_id even though these fields don't hold an APIC ID
itself but rather its derivative.

Provide appropriate macros for each of those three (and make them
unsigned).

This also fixes regression introduced by commit 2090f14c5cbd ("sysctl:
make XEN_SYSCTL_topologyinfo sysctl a little more efficient") which
leaked BAD_APICID into common code, breaking ARM.

Reported-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Ditch INVALID_{CORE,SOCKET}ID in favor of always using
XEN_INVALID_{CORE,SOCKET}_ID.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/smpboot.c
xen/common/sched_credit2.c
xen/common/sysctl.c
xen/include/asm-x86/processor.h
xen/include/asm-x86/smp.h